import org.eclipse.jface.dialogs.MessageDialog
import org.eclipse.swt.widgets.Label
import org.eclipse.swt.SWT
import org.eclipse.swt.widgets.Composite


// a demo class for implementing the View 
class MyView extends org.eclipse.ui.part.ViewPart {
	
	public void createPartControl(Composite composite) {
		Label label = new Label(composite, SWT.HORIZONTAL);
		label.setText("an extension view")
	}

	public void setFocus() {
    	
	}
	
    def dispose(){
    	
    }
    
    // the "part" class must implement a meaningful equals() method
    // as the PartTester class will verify this 
    public boolean equals(java.lang.Object o){
    	if(o == null){
    		return false;
    	}
    	
    	if( !(o instanceof org.eclipse.ui.IViewPart)){
    		return false
    	}
    	
    	return true;
    }
}

def view = new MyView();
view
